package com.summer.boot;

import com.summer.client.RPCConsumer;
import com.sunmmer.service.IUserService;

public class ConsumerBoot {

    private static   final String PROVIDER_NAME = "UserService#sayHell#";

    public static void main(String[] args) throws InterruptedException {
        //创建代理对象
        IUserService service = (IUserService) RPCConsumer.createProxy(IUserService.class, PROVIDER_NAME);

        //循环给服务器写数据
        while (true){
            service.sayHello("are you ok!!!");
            Thread.sleep(2000);
        }
    }
}
